package com.rongke.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.rongke.mapper.DeliveryPlanMapper;
import com.rongke.model.DeliveryPlan;
import com.rongke.service.DeliveryPlanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @DeliveryPlanServiceImpl
 * @配送方式ServiceImpl
 * @version : Ver 1.0
 */
@Service
public class DeliveryPlanServiceImpl extends ServiceImpl<DeliveryPlanMapper, DeliveryPlan> implements DeliveryPlanService {

    @Autowired
    private DeliveryPlanMapper deliveryPlanMapper;

    /**
     * @根据条件查找配送方式
     * @param deliveryPlan
     * @return
     */
    @Override
    public List<DeliveryPlan> selectByCondition(DeliveryPlan deliveryPlan) {
        return deliveryPlanMapper.selectByCondition(deliveryPlan);
    }
}
